<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>

<script type="text/javascript">
	// es6写法
	const add = (a,b) => {
		return a + b;
	}
	var result= add(100,100);
	console.log(result);
	
	// 等同于下面的es5写法
	// var add = function(a, b) {
		// return a + b;
	// }
	
	
	var demo = x => x * x;
	
	// 等同于下面的function
	//var demo = (x) => {
		//return x * x;
	// }
	
	
	
	
</script>
